home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / recent / iib122.lha / IIB / Threads / Deaceleration < prev    next >
Internet Message Format  |  1998-02-17  |  2KB

  1. Date:         Mon, 22 Sep 1997 16:53:27 -0600
  2. From: Jim Belcher <jbb@koyote.com>
  3. Subject:      Re: [IML] QUEST: Deceleration on path
  4.  
  5. On 22-Sep-97, Tim Clarke wrote:
  6. >Can anyone enlighten me on how to get a object following a path to decelerate
  7. >for the last 30 frames. I can't seem to figure this sucker out. I've plugged
  8. >values in for ending speed units/frame but I'm not seeing any difference.
  9. >I have a path length of 55701 units that my object travels in 150 frames and
  10. >I'm trying to slow it down at the end of the path.
  11. >Any ideas?
  12. >Thanks
  13.  
  14. >Tim Clarke
  15. >(another Canadian IMLer from London, Ontario Canada)
  16.  
  17. I did the reverse of this for an aircraft accelerating on a runway.  I figured
  18. out the initial velocity and the terminal velocity.  Using the expected rate
  19. of acceleration, I moved the aircraft an appropriate distance each ten frames,
  20. and set that value for that frame.  Imagine then interpolated the in-between
  21. values.
  22.  
  23. When I ran the animation, it was not at all evident what I had done.  You
  24. might
  25. try the same trick, but in reverse.
  26.  
  27. ----------------------------------
  28.  
  29. Date:         Wed, 24 Sep 1997 22:24:29 +0400
  30. From: Charles Blaquière <blaq@INTERLOG.COM>
  31.  
  32. Tim,
  33.  
  34. with these numbers, the object travels at an average speed of 371.34
  35. units/frame. To get deceleration, you'll need to enter a number less
  36. than  371.34 in the "ending speed" field, then enter 30 in
  37. (Ac)Deceleration Frames. Often, people enter zero as the ending speed,
  38. to have the object come to a standstill at the end of the path.
  39.  
  40. I believe objects that follow paths essentially have three speeds: they
  41. begin at the starting speed on the first frame of the "follow path" bar,
  42. ac(de)celerate to a fixed "cruising speed", then de(ac)celerate to the
  43. ending speed on the last frame. Given the initial and final speeds, and
  44. the number of ac/deceleration frames, there is always a cruising speed
  45. that will fulfill the requirements and make the object arrive at the end
  46. of the path on the desired frame.
  47.